package org.springcloud.wisdom.spring_01_canteen.loginmsg.dao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springcloud.wisdom.spring_01_canteen.login.entity.Admin;
import org.springcloud.wisdom.spring_01_canteen.login.entity.Mall;


@Mapper
public interface AdminDao {
    //修改商家信息
    @Update("<script>"
            + "update wisdom.admin"
            + "    <set>"
            + "        <if test='null!= aphone'>"
            + "            aphone = #{aphone},"
            + "        </if>"
            + "    </set>"
            + "    where aid = #{aid}"
            + "</script>")
    public int updateAdmin(Admin admin);

}
